package com.design.create.factory.method_factory;

/**
 * 一个具体工厂创建一个具体的产品对象
 */
public class MethodFactoryTest {

    public static void main(String[] args) {
        //先创建AudiA4工厂类，调用create方法创建对象
        AudiA4Factory audiA4Factory = new AudiA4Factory();
        Audi audi = audiA4Factory.createAudi();

        AudiA6Factory audiA6Factory = new AudiA6Factory();
        Audi audi1 = audiA6Factory.createAudi();
    }
}
